---
layout: single
property_name: overflow-y
---

<section id="overflow-y" class="property">
  <header class="property-header">
    <nav class="property-links">
      <a class="property-links-direct" href="{{site.url}}/property/overflow-y/" data-property-name="overflow-y" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="overflow-y">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/overflow-y" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#overflow-y"><span>#</span>overflow-y</a>
    </h2>
    <div class="property-description">
      <p>Defines how overflowing content on the vertical axis is displayed.</p>

    </div>

  </header>



    <style type="text/css">.overflow-y .block { height: 80px;width: 240px; }</style>


    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow-y: visible;">overflow-y: visible;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is <strong>visible</strong>, while the element itself stays at the specified height.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow-y " id="overflow-y-visible"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-y-visible .block { overflow-y: visible; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow-y: hidden;">overflow-y: hidden;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is <strong>hidden</strong> and can not be accessed.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow-y " id="overflow-y-hidden"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-y-hidden .block { overflow-y: hidden; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow-y: scroll;">overflow-y: scroll;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is accessible thanks to a <strong>vertical scrollbar</strong>.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow-y " id="overflow-y-scroll"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-y-scroll .block { overflow-y: scroll; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="overflow-y: auto;">overflow-y: auto;</code>
        </p>
        <div class="example-description">
          <p>The browser decides whether to display a vertical scrollbar or not.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div overflow-y " id="overflow-y-auto"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div>
        </div>
      </aside>
        <style type="text/css">#overflow-y-auto .block { overflow-y: auto; }</style>
    </section>

</section>
